/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.entity;

import org.json.JSONObject;

/**
 *
 * @author rajin
 */
public class TwitterUser {
   public static String USER_ID ="user_id";
   public static String USER_NAME ="user_name";
   public static String SCREEN_NAME = "screen_name";
   public static String DESCRIPTION = "description";
   public static String PROFILE_IMAGE_URL = "profile_image_url";
   public static String LOCATION = "location";
   
   private long userId;
   private String userName;
   private String screenName;
   private String description;
   private String profileImageUrl;
   private String location;
   
   public TwitterUser(long userId, String userName,String screenName,String description,String profileImageUrl,String location)
   {
       this.userId = userId;
       this.userName = userName;
       this.screenName= screenName;
       this.description = description;
       this.profileImageUrl = profileImageUrl;
       this.location = location;
               
   }
   public JSONObject toJSON()
   {
       JSONObject obj = new JSONObject();
       obj.put(TwitterUser.USER_ID, userId);
       obj.put(TwitterUser.USER_NAME, userName);
       obj.put(TwitterUser.SCREEN_NAME, screenName);
       obj.put(TwitterUser.DESCRIPTION, description);
       obj.put(TwitterUser.PROFILE_IMAGE_URL, profileImageUrl);
       obj.put(TwitterUser.LOCATION, location);
       
       return obj;
   }
}
